<?php defined('IN_ADMIN') or exit('No permission resources.');?>
<?php include $this->admin_tpl('header', 'admin');?>
<script type="text/javascript">
$(document).ready(function() {
	$.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'50'})}});
	$("#name").formValidator({onshow:"<?php echo L('input').L('course_name')?>",onfocus:"<?php echo L('input').L('course_name')?>"}).inputValidator({min:1,onerror:"<?php echo L('input').L('course_name')?>"});


});
</script>
<div class="pad-10">
<div class="col-tab">
<ul class="tabBut cu-li">
<li class="on" id="tab_1">课程</li>
</ul>
<form name="myform" action="?m=course&c=manage&a=add" method="post" id="myform" enctype="multipart/form-data">
<div class="content pad-10" id="show_div_1" style="height:auto">
	<fieldset>
		<legend><?php echo L('course_info')?></legend>
		<table width="100%" class="table_form">
			<tr>
				<td width="120"><?php echo L('course_name')?>：</td>
				<td>
					<input type="text" name="data[name]" id="name"  class="input-text" value="" />
				</td>
			</tr>
			
			<tr>
				<td width="120"><?php echo L('course_thumb')?>：</td>

				<td><?php echo form::images('data[thumb]', 'thumb', '', 'course', '', 40)?></td>
			</tr>
			
			<tr>
				<td width="120"><?php echo L('course_time')?>：</td>

				<td><?php echo form::date('data[time]', date('Y-m-d'), 0, 0, 'true', 1)?></td>
			</tr>

			<tr>
				<td width="120"><?php echo L('course_description')?>：</td>
				<td>
					<textarea rows="10" cols="80" name="data[description]" id="description" ><?php if(isset($data['description']) ) { echo $data['description'];}?></textarea>
				</td>
			</tr>
			
			<tr>
				<td width="120"><?php echo L('course_content')?>：</td>
				<td>
					<textarea name="data[content]" id="content"></textarea><?php echo form::editor('content','full','','','','','','',300)?>
				</td>
			</tr>
		</table>
	</fieldset>


</div>
    <div class="bk15"></div>
    <input name="dosubmit" type="submit" id="dosubmit" value="<?php echo L('submit')?>" class="button">


</form>
</div>
</div>
</body>
</html>